package com.wechat.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 微信支付后端交易记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TransactionRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    //状态：1，正常；0，退款
    public static final Short NORMAL = 1;
    public static final Short REFUND = 0;

    private Long id;
    //金额
    private BigDecimal total;
    //金额单位
    private String currency;
    //商户系统订单号
    private String outTradeNo;
    //openid
    private String openid;
    //商品描述
    private String description;
    //创建时间
    private LocalDateTime createTime;
    private String appid;
    private String mchid;
    //状态：1，正常；0，退款
    private Short status;
}
